package com.groupbuying.customerconsumer.connector;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @anthor zmlmagic
 * @date 2019/4/17 4:47 PM
 * @company 蒙泰互联网公司
 * @des 备注说明
 **/

@Service
@FeignClient(name = "bus-currency")
public interface CurrencyFeign {
    @RequestMapping(value = "/account/getInfo", method = RequestMethod.GET)
    Map getCurrencyAccount(@RequestParam Map<String, Object> params);

    @RequestMapping(value = "/account/create", method = RequestMethod.POST)
    Map createCurrencyCustomer(@RequestParam Map<String, Object> params);
}